
#ifndef MySafeDelete
#define MySafeDelete(x)     if(NULL != x){delete x; x = NULL;}
#endif
#ifndef MySafeDeleteMAB
#define MySafeDeleteMAB(x)  if(NULL != x){delete[] x; x = NULL;}
#endif
#ifndef MySafeRelease
#define MySafeRelease(x)    if(NULL != x){x->Release();x = NULL;}
#endif

#ifndef WORD
typedef unsigned short WORD;
#endif
#ifndef DWORD
typedef unsigned long DWORD;
#endif
#ifndef BYTE
typedef unsigned char BYTE;
#endif

